-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
50 lines (47 loc) · 1.29 KB
/
docker-compose.prod.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:
palm-beach-cannes-strapi:
container_name: palm-beach-cannes-strapi
image: ghcr.io/sombrero-studio/palm-beach-backend:${IMAGE_TAG}
restart: unless-stopped
env_file: .env
environment:
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_PORT: ${DATABASE_PORT}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
networks:
- palm-beach-cannes-network
- proxy-net
expose:
- 1337
depends_on:
- palm-beach-cannes-db
palm-beach-cannes-db:
container_name: palm-beach-cannes-db
image: postgres:14.0-alpine
platform: linux/amd64 #for platform error on Apple M1 chips
restart: unless-stopped
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- palm-beach-cannes-data:/var/lib/postgresql/data/ #using a volume
networks:
- palm-beach-cannes-network
- db-admin-net
expose:
- 5432
volumes:
palm-beach-cannes-data:
name: palm-beach-cannes-data
networks:
palm-beach-cannes-network:
name: palm-beach-cannes-network
proxy-net:
external: true
name: proxy-net
db-admin-net:
external: true
name: db-admin-net