-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
61 lines (56 loc) · 1.17 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.8"
services:
web:
build:
context: ./app
dockerfile: Dockerfile.prod
command: gunicorn perpus.wsgi:application --bind 0.0.0.0:8000
expose:
- 8000
env_file:
- ./.env.prod
depends_on:
- db
db:
image: mariadb
container_name: perpus-db
environment:
MARIADB_DATABASE: "${MARIADB_DATABASE}"
MARIADB_USER: "${MARIADB_USER}"
MARIADB_PASSWORD: "${MARIADB_PASSWORD}"
MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD}"
MARIADB_TZ: "Asia/Makassar"
command: "--default-time-zone=+08:00"
ports:
- "3306:3306"
volumes:
- ./_tmpdb/mariadb:/var/lib/mysql
networks:
- perpus-app
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- 8080:80
links:
- db:mysql
environment:
PMA_HOST: db
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
PMA_ARBITRARY: 1
volumes:
- /_tmpdb/phpmyadmin
networks:
- perpus-app
nginx:
build: ./nginx
ports:
- 1337:80
depends_on:
- web
networks:
perpus-app: