-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1013 Bytes
/
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
version: '3'
services:
frontend:
image: frontend:latest
ports:
- 8080:80
networks:
- backend
environment:
- VUE_APP_I18N_LOCALE=en
- VUE_APP_I18N_FALLBACK_LOCALE=en
- VUE_APP_HATCH_BACKEND_URL=http:/backend
- VUE_APP_HATCH_BACKEND_PORT=3000
redis:
image: redis:alpine
ports:
- 6379:6379
networks:
- backend
db:
image: postgres:14-alpine
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=Passw0rd!
- POSTGRES_DB=ddc_db
- POSTGRES_INITDB_ARGS="--auth-host=trust"
volumes:
- ./database/initdb/:/docker-entrypoint-initdb.d/
networks:
- backend
backend:
image: backend:latest
ports:
- 3000:3000
- 4000:4000
- 4100:4100
networks:
- backend
volumes:
- .env:/usr/src/app/.env
- ./ormconfig.json:/usr/src/app/ormconfig.json
networks:
backend:
driver: bridge