-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose.yml
75 lines (69 loc) · 1.7 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3.1"
services:
db:
container_name: mobydq-db
restart: always
image: mobydq-db
build:
context: ./db
volumes:
- db:/var/lib/postgresql/data
env_file:
- ./.env
graphql:
container_name: mobydq-graphql
restart: always
image: mobydq-graphql
build:
context: ./graphql
volumes:
- //var/run/docker.sock:/var/run/docker.sock
env_file:
- ./.env
depends_on:
- db
app:
container_name: mobydq-app
restart: always
image: mobydq-app
build:
context: ./app
env_file:
- ./.env
depends_on:
- graphql
command: ["prod"]
nginx:
container_name: mobydq-nginx
restart: always
image: nginx:alpine
volumes:
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/config/cert.pem:/etc/nginx/cert.pem
- ./nginx/config/key.pem:/etc/nginx/key.pem
ports:
- 80:80
- 443:443
depends_on:
- graphql
scripts:
container_name: mobydq-scripts
restart: always
image: mobydq-scripts
build:
context: ./scripts
args:
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_SENDER=${MAIL_SENDER}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_BASE_URL=${MAIL_BASE_URL}
env_file:
- ./.env
depends_on:
- graphql
networks:
default:
name: mobydq_network
volumes:
db: