-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-deployment.yml
46 lines (43 loc) · 1.09 KB
/
docker-compose-deployment.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
version: '3'
services:
frontend:
build:
dockerfile: Dockerfile.deployment
context: ./frontend
container_name: frontend
ports:
- 443:443
volumes:
- /etc/letsencrypt/archive/fitogether.site/fullchain1.pem:/usr/app/ssl/fullchain.pem
- /etc/letsencrypt/archive/fitogether.site/privkey1.pem:/usr/app/ssl/privkey.pem
stdin_open: true
tty: true
backend:
build:
dockerfile: Dockerfile.deployment
context: ./backend
container_name: backend
ports:
- 8000:8000
- 8001:8001
depends_on:
- mysql
stdin_open: true
tty: true
mysql:
image: mysql:8.0
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --default-authentication-plugin=mysql_native_password
container_name: mysql
environment:
# Password is not uploaded on Github.
MYSQL_ROOT_PASSWORD: '???'
MYSQL_DATABASE: 'fitogether_db'
MYSQL_USER: 'fitogether_user'
MYSQL_PASSWORD: '???'
volumes:
- ./mysqldata:/var/lib/mysql
ports:
- 3306:3306