-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.15 KB
/
docker-compose.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
version: '3.0'
services:
backend:
build: ./backend
depends_on:
- database
links:
- database
volumes:
- ./samples/:/app/samples/
networks:
internal:
aliases:
- backend
frontend:
build: ./frontend
environment:
- PORT=80
links:
- backend
networks:
internal:
aliases:
- frontend
database:
image: mysql:latest
ports:
- "3306:3306"
command: --init-file /data/application/init.sql
volumes:
- ./init.sql:/data/application/init.sql
- ./database/:/var/lib/mysql
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: tijolo22
networks:
internal:
aliases:
- database
proxy:
image: nginx
depends_on:
- frontend
- backend
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
# For production only
- ./fullchain.pem:/etc/letsencrypt/fullchain.pem
- ./privkey.pem:/etc/letsencrypt/privkey.pem
ports:
- "80:80"
- "443:443"
networks:
internal:
aliases:
- proxy
networks:
internal: