-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
51 lines (50 loc) · 1.18 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
services:
api:
build:
context: api
dockerfile: Dockerfile.dev
args:
POETRY_VERSION: ${POETRY_VERSION}
ports:
- "${API_PORT}:${API_PORT}"
environment:
API_ENV: dev
API_PORT: ${API_PORT}
ADMIN_USER: ${ADMIN_USER}
ADMIN_PASSWORD_HASHED: /run/secrets/admin_password_hash
SECRET_KEY: /run/secrets/api_secret
DB_HOST: ${DB_HOST}
DB_USER: ${DB_USER}
DB_PASSWORD: /run/secrets/db_passwd
DB_NAME: ${DB_NAME}
volumes:
- ./api/src:/app/src
secrets:
- api_secret
- admin_password_hash
- db_passwd
client:
build:
context: client
dockerfile: Dockerfile.dev
args:
API_URL: "http://api:${API_PORT}"
CLIENT_PORT: ${CLIENT_PORT}
DEADLINE: ${DEADLINE}
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
environment:
API_URL: "http://api:${API_PORT}"
CLIENT_PORT: ${CLIENT_PORT}
depends_on:
- api
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
secrets:
api_secret:
file: api-secret.txt
admin_password_hash:
file: admin-password.txt
db_passwd:
file: db-password.txt