-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
50 lines (48 loc) · 1.24 KB
/
compose.yaml
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
version: '3'
services:
coverletter.ai:
image: spiritseal/coverletter:latest
build:
dockerfile: Dockerfile
environment:
- MAIL_SERVER=localhost
- MAIL_PORT=587
- SECRET_KEY=mysecretkey
- FLASK_SQLALCHEMY_DATABASE_URI=mysql+pymysql://coverletter:test@mysql/coverletter
ports:
- 8000:5000
networks:
- coverletter.ai
depends_on:
- mysql
volumes:
- ./logs:/app/logs
mysql:
image: mysql:latest
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=coverletter
- MYSQL_USER=coverletter
- MYSQL_PASSWORD=test
networks:
- coverletter.ai
volumes:
- ./mysql:/var/lib/mysql
nginx:
image: nginx:latest
ports:
- 80:80
- 443:443
volumes:
- ./nginx:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs
# - ./logs:/var/log/
depends_on:
- coverletter.ai
networks:
- coverletter.ai
restart: always
networks:
# Path: docker-compose.yaml
coverletter.ai:
driver: bridge