-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 1.1 KB
/
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
53
54
55
56
57
version: '3.7'
services:
frontend:
container_name: ${APP_FRONTEND_NAME}
build:
context: frontend
args:
- APP_BACKEND_HOST=${APP_BACKEND_HOST}
- APP_BACKEND_PORT=${APP_BACKEND_PORT}
ports:
- ${APP_FRONTEND_PORT}:80
networks:
- formalivrenet
env_file:
- ./.env
backend:
container_name: ${APP_BACKEND_NAME}
build:
context: backend
ports:
- ${APP_BACKEND_PORT}:${APP_BACKEND_PORT}
networks:
- formalivrenet
env_file:
- ./.env
database:
image: postgres:15.1-bullseye
container_name: ${APP_DATABASE_NAME}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
networks:
- formalivrenet
volumes:
- ./.volumes/postgres/log:/var/log/postgresql
- ./.volumes/postgres/data:/var/lib/postgresql/data
env_file:
- ./.env
pgadmin:
image: dpage/pgadmin4:2022-11-17-1
container_name: ${PGADMIN_NAME}
ports:
- ${PGADMIN_PORT}:80
networks:
- formalivrenet
env_file:
- ./.env
networks:
formalivrenet:
external:
name: formalivrenet