-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
108 lines (108 loc) · 2.53 KB
/
docker-compose.dev.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
networks:
internal:
external: false
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: cookies
POSTGRES_DB: cookies
POSTGRES_PASSWORD: password
ports:
- "5000:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
networks:
- internal
adminer:
image: adminer
restart: always
ports:
- 8082:8080
networks:
- internal
api:
build:
context: api
dockerfile: Dockerfile.dev
args:
API_PORT: ${API_PORT}
POETRY_VERSION: ${POETRY_VERSION}
MAILCTL_VERSION: ${MAILCTL_VERSION}
MSMTP_VERSION: ${MSMTP_VERSION}
MAILCTL_SERVICES: ${MAILCTL_SERVICES}
MAILCTL_ACCOUNT: ${MAILCTL_ACCOUNT}
KEY_ID: ${KEY_ID}
PRIVATE_KEY: /run/secrets/gpg_private
MSMTP_HOST: ${MSMTP_HOST}
MSMTP_PORT: ${MSMTP_PORT}
MSMTP_AUTH: ${MSMTP_AUTH}
MSMTP_FROM: ${MSMTP_FROM}
MSMTP_USER: ${MSMTP_USER}
MSMTP_EVAL: ${MSMTP_EVAL}
secrets:
- gpg_private
ports:
- "${API_PORT}:${API_PORT}"
environment:
API_PORT: "${API_PORT}"
SECRET_KEY: /run/secrets/api_secret
MAILCTL_TOKEN: ${MAILCTL_TOKEN}
DB_HOST: db
DB_USER: cookies
DB_NAME: cookies
DB_PASSWORD: /run/secrets/db_password
MAILING_LISTS: ${MAILING_LISTS}
TIMEZONE: ${TIMEZONE}
secrets:
- api_secret
- gpg_private
volumes:
- ./api/src:/app/src
- ${MAILCTL_TOKEN}:/app/mail/token.auth
networks:
- internal
client:
depends_on:
- api
build:
context: client
dockerfile: Dockerfile.dev
args:
CLIENT_PORT: ${CLIENT_PORT}
API_URL: "http://api:${API_PORT}"
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
environment:
API_URL: "http://api:${API_PORT}"
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
networks:
- internal
updater:
depends_on:
- api
build:
context: updater
dockerfile: Dockerfile.dev
args:
CRON: "* * * * *"
POETRY_VERSION: ${POETRY_VERSION}
environment:
API_USER: admin
API_PASSWORD: /run/secrets/api_password
API_ENDPOINT: "http://api:${API_PORT}"
networks:
- internal
volumes:
- ./updater/src:/app/src
secrets:
api_secret:
file: ${API_SECRET_FILE}
gpg_private:
file: ${GPG_SECRET_KEY_FILE}
volumes:
pgdata: