-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
63 lines (57 loc) · 1.25 KB
/
docker-compose.dev.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
62
63
version: “3”
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- "80:80"
- "443:443"
depends_on:
- backend
- frontend
volumes:
- certbot-www:/var/www/certbot/:ro
- certbot-conf:/etc/nginx/ssl/:ro
networks:
- lesser-net
backend:
build:
context: ./backend
environment:
- DATABASE_HOST=db
- DATABASE_PORT=3306
- DATABASE_USER=${DEV_MYSQL_USER}
- DATABASE_PASSWORD=${DEV_MYSQL_PASSWORD}
- DATABASE_NAME=${DEV_MYSQL_DATABASE}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRETS=${GITHUB_CLIENT_SECRETS}
- JWT_SECRET=${JWT_SECRET}
depends_on:
- db
networks:
- lesser-net
frontend:
build:
context: ./frontend
networks:
- lesser-net
db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=${DEV_MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${DEV_MYSQL_DATABASE}
- MYSQL_USER=${DEV_MYSQL_USER}
- MYSQL_PASSWORD=${DEV_MYSQL_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
networks:
- lesser-net
networks:
lesser-net: {}
volumes:
mysql_data: {}
certbot-www:
external: true
certbot-conf:
external: true