-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-deploy.yml
47 lines (42 loc) · 1009 Bytes
/
docker-compose-deploy.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
version: "3"
services:
app:
build:
context: .
volumes:
- static_data:/vol/web
env_file:
- .env
environment:
- SECRET_KEY=${SECRET_KEY}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
proxy:
build:
context: ./proxy
volumes:
- static_data:/vol/static
ports:
- "9090:9090"
depends_on:
- app
db:
image: mysql:latest
ports:
- '${SQL_PORT}:3306'
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '${PHPMYADMIN_PORT}:80'
environment:
PMA_HOST: db
volumes:
static_data: