Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
odezig authored and odezig committed Apr 23, 2024
1 parent 182b172 commit f4883de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
Binary file added .DS_Store
Binary file not shown.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
## Instalation

- Berikan izin eksekusi ke file script dengan menjalankan:

- Running docker build:
```bash
chmod +x setup-and-run.sh
```

- Eksekusi script dari terminal:
```bash
./setup-and-run.sh
docker compose up -d --build
```
12 changes: 7 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
MYSQL_USER: bosku
MYSQL_PASSWORD: P@rahasia123
command: --max_allowed_packet=120M
restart: unless-stopped
ports:
- "3306:3306"
volumes:
Expand All @@ -28,13 +29,14 @@ services:
nginx:
container_name: nginx-ansor
image: nginx:latest
restart: unless-stopped
ports:
- "8080:80"
- "8443:443"
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/html:/usr/share/nginx/html
- ./data/www:/usr/share/nginx/html
- ./data/logs:/var/log/nginx
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- db
- redis
Expand Down
17 changes: 0 additions & 17 deletions setup-and-run.sh

This file was deleted.

0 comments on commit f4883de

Please sign in to comment.