This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
77 lines (71 loc) · 1.48 KB
/
docker-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
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
76
77
version: "3"
services:
nginx:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- clementine
depends_on:
- server
- client
ports:
- 80:80
worker:
build: ./server
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
TRACE_THRESHOLD: ${TRACE_THRESHOLD:-500000}
networks:
- clementine
server:
build: ./server
depends_on:
- postgres
- redis
environment:
DOMAIN: ${DOMAIN}
PORT: 3000
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
SESSION_SECRET: ${SESSION_SECRET}
SMTP: ${SMTP}
SMTP_EMAIL_FROM: ${SMTP_EMAIL_FROM}
ENGINE_API_KEY: ${ENGINE_API_KEY}
IS_SSL: "0"
ports:
- 3000
networks:
- clementine
client:
build: ./client
environment:
PORT: 3000
ports:
- 3000
networks:
- clementine
postgres:
image: postgres:10.4
ports:
- 5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- clementine
redis:
image: 'bitnami/redis:latest'
ports:
- 6379
environment:
ALLOW_EMPTY_PASSWORD: "yes"
networks:
- clementine
networks:
clementine:
# Use a custom driver
driver: bridge