-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.35 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.0'
networks:
mynetwork:
driver: bridge
services:
db:
container_name: db-postgres
image: postgres:14.1-alpine
restart: always
command: -p 5433
expose:
- 5433
ports:
- "5433:5433"
environment:
POSTGRES_USER: postgres_user
POSTGRES_PASSWORD: postgres_password
POSTGRES_DB: postgres_db
LC_MESSAGES: en_US.utf8
LC_MESSAGES: C
env_file:
- .env.dev
networks:
- mynetwork
db_test:
container_name: db-postgres-test
image: postgres:14.1-alpine
restart: always
command: -p 5434
expose:
- 5434
ports:
- "5434:5434"
environment:
POSTGRES_USER: postgres_user_test
POSTGRES_PASSWORD: postgres_password_test
POSTGRES_DB: postgres_db_test
LC_MESSAGES: en_US.utf8
LC_MESSAGES: C
env_file:
- .env.dev
networks:
- mynetwork
app:
container_name: app
build:
context: .
env_file:
- .env.dev
ports:
- "8080:8000"
command: ["/app/docker/app.sh"]
depends_on:
- db
- db_test
networks:
- mynetwork
pgadmin:
image: dpage/pgadmin4
container_name: "pgadmin"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin@example.com
PGADMIN_DEFAULT_PASSWORD: pgadmin_password
ports:
- "5050:80"
networks:
- mynetwork