-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (66 loc) · 1.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (66 loc) · 1.78 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
version: "3.7"
services:
app:
image: golang:1.17
command: sh -c "${COMMAND}"
ports:
- 3000:3000
working_dir: /app
volumes:
- ./:/app
environment:
APP_ENV: ${APP_ENV}
DB_HOST: db
DB_PORT: 5432
DB_USER: fotongo
DB_PASS: 123456
DB_NAME: fotongo
DATABASE_URL: "postgres://fotongo:123456@db:5432/fotongo"
TEST_DB_HOST: db_test
TEST_DB_PORT: 5432
TEST_DB_USER: fotongo_test
TEST_DB_PASS: 123456_test
TEST_DB_NAME: fotongo_test
JWT_SECRET: ini-testing-password-secret
TEST_JWT_SECRET: ini-testing-password-secret
networks:
- fotongo_net
depends_on:
- db
db:
image: postgres:latest
volumes:
- fotongo_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: fotongo
POSTGRES_PASSWORD: 123456
POSTGRES_DB: fotongo
networks:
- fotongo_net
ports:
- 5437:5432
db_test:
image: postgres:latest
volumes:
- fotongo_data_test:/var/lib/postgresql/data
environment:
POSTGRES_USER: fotongo_test
POSTGRES_PASSWORD: 123456_test
POSTGRES_DB: fotongo_test
networks:
- fotongo_net
bytebase:
image: bytebase/bytebase:0.8.1
ports:
- "8008:8008"
volumes:
- bytebase_data:/var/opt/bytebase
command: |
--data /var/opt/bytebase --host http://localhost --port 8008
volumes:
fotongo_data:
fotongo_data_test:
bytebase_data:
networks:
fotongo_net:
driver: bridge