Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (96 loc) · 2.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (96 loc) · 2.42 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
networks:
t3lls_gate--app_net:
external: true
t3lls_gate--api_net:
external: true
t3lls_gate--adminer_net:
external: true
api-st--db_net:
driver: bridge
db-st--adminer_net:
driver: bridge
secrets:
postgres_password:
file: ./secrets/postgres_password.txt
postgres_connection:
file: ./secrets/postgres_connection.txt
services:
njs-st:
build:
context: ./njs-st/next-app
dockerfile: prod.Dockerfile
restart: always
networks: # internal port 3000
- t3lls_gate--app_net
env_file:
- ./njs-st/.env
stop_grace_period: 0s
njs-st-dev:
container_name: steptime-njs-st-dev
build:
context: ./njs-st/next-app
dockerfile: dev.Dockerfile
restart: always
networks: # internal port 3000
- t3lls_gate--app_net
volumes:
- ./njs-st/next-app/src:/app/src
- ./njs-st/next-app/public:/app/public
env_file:
- ./njs-st/.env
stop_grace_period: 0s
# api-st:
# build:
# context: ./api-st
# dockerfile: prod.Dockerfile
# restart: always
# networks: # internal port 8080
# - t3lls_gate--api_net
# - api-st--db_net
# volumes:
# - ./api-st/node_modules:/app/node_modules
# - ./api-st/src:/app/src
# - ./api-st/dist:/app/dist
# secrets:
# - postgres_password
# - postgres_connection
# stop_grace_period: 0s
api-st-dev:
container_name: steptime-api-st-1
build:
context: ./api-st
dockerfile: dev.Dockerfile
restart: always
networks: # internal port 8080
- t3lls_gate--api_net
- api-st--db_net
volumes:
- ./api-st/node_modules:/app/node_modules
- ./api-st/src:/app/src
- ./api-st/dist:/app/dist
secrets:
- postgres_password
- postgres_connection
stop_grace_period: 0s
db-st:
image: postgres:latest
restart: unless-stopped
networks:
- api-st--db_net
- db-st--adminer_net
volumes:
- ./db-st/data:/var/lib/postgresql/data
secrets:
- postgres_password
environment:
POSTGRES_USER: manualuser
POSTGRES_DB: steptime
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
command: ["-c", "shared_preload_libraries=uuid-ossp"]
db-st-adminer:
container_name: steptime-db-st-adminer
image: adminer
restart: always
networks: # internal port 8080
- t3lls_gate--adminer_net
- db-st--adminer_net