-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.test.yaml
75 lines (69 loc) · 2.09 KB
/
compose.test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# +----------------------------------------------------------------------------------------+ #
# | _____ _ _ | #
# | | __ \ | | (_) | #
# | | | | | ___ __ __ ___ ___ _ __ | |_ __ _ _ _ __ ___ _ __ | #
# | | | | | / _ \ \ \ / / / __| / _ \ | '_ \ | __| / _` | | | | '_ \ / _ \ | '__| | #
# | | |__| | | __/ \ V / | (__ | (_) | | | | | \ |_ | (_| | | | | | | | | __/ | | | #
# | |_____/ \___| \_/ \___| \___/ |_| |_| \__| \__,_| |_| |_| |_| \___| |_| | #
# | | #
# +----------------------------------------------------------------------------------------+ #
name: frost-test
services:
devcontainer:
build:
context: .
dockerfile: ./.devcontainer/Dockerfile
target: devcontainer
volumes:
- .:/workspace:cached
working_dir: /workspace
# ports:
command: sleep infinity
networks:
- frost-test-local
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
target: frontend
# volumes:
# working_dir: /workspaces
# ports:
# - "3000:3000"
command: sleep infinity
depends_on:
- backend
networks:
- frost-test-local
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
target: backend
# volumes:
# working_dir: /workspaces
# ports:
# - "3001:3000"
command: sleep infinity
depends_on:
- db
networks:
- frost-test-local
db:
# container_name: db
image: postgres:15
volumes:
- ./db/data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d
# working_dir: /workspaces
# ports:
# - "5432:5432"
command: sleep infinity
environment:
POSTGRES_DB: frost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- frost-test-local
networks:
frost-test-local: