-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
45 lines (42 loc) · 1.07 KB
/
docker-compose.yaml
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
version: '3.3'
services:
################ Postgresql ################
postgres:
container_name: ${DB_HOST}
restart: unless-stopped
image: postgres:14
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_INITDB_ARGS: --encoding=UTF-8
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
################# Transcendence #################
transcendence:
container_name: transcendence
restart: unless-stopped
depends_on:
- postgres
ports:
- ${BACK_PORT}:${BACK_PORT}
build:
context: .
dockerfile: ./docker/production.Dockerfile
args:
NODE_ENV: production
VITE_API_HOST: ${API_HOST}
FRONTEND_HOST: ${FRONTEND_HOST}
API_HOST: ${API_HOST}
volumes:
- avatar:/usr/src/app/upload/avatars/
- /etc/localtime:/etc/localtime:ro
volumes:
pgdata:
driver: local
avatar:
driver: local