-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 945 Bytes
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.7'
services:
app_client:
container_name: app_client
image: app_client_image
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- app_server
app_server:
container_name: app_server
image: app_server_image
env_file:
- server/.env
build:
context: ./server
dockerfile: Dockerfile
volumes:
- ./server/:/src
ports:
- "16000:8000"
depends_on:
- app_db
app_db:
container_name: app_db
hostname: app_db
image: library/postgres:14.1
env_file:
- server/.env
volumes:
- app_pg_data:/var/lib/postgresql/data
- app_pg_data_backups:/backups
- ./server/scripts/postgres:/scripts
ports:
- "65432:5432"
volumes:
app_pg_data:
driver: "local"
app_pg_data_backups:
driver: "local"
networks:
default:
external: true
name: app_main