-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 971 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
services:
client:
container_name: client
build:
context: ./
dockerfile: ./apps/client/Dockerfile
restart: always
env_file:
- ./apps/client/.env
ports:
- 3000:3000
environment:
NODE_ENV: ${NODE_ENV}
volumes:
- ./apps/client:/app/apps/client
networks:
- cms
cms:
container_name: cms
build:
context: ./
dockerfile: ./apps/cms/Dockerfile
restart: always
env_file:
- ./apps/cms/.env
ports:
- 1337:1337
environment:
NODE_ENV: ${NODE_ENV}
volumes:
- ./apps/cms:/app/apps/cms
networks:
- cms
cmsDB:
container_name: cmsDB
image: postgres:16-alpine3.19
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
POSTGRES_DB: cmsDB
PGDATA: /var/lib/postgresql/data
networks:
- cms
networks:
cms:
name: cms
driver: bridge