-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
66 lines (60 loc) · 1.45 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.8"
services:
postgres:
container_name: fluxy_db
image: postgres:13-alpine
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data/
restart: always
networks:
- fluxy_network
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
restart: always
ports:
- "5050:80"
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=root
logging:
driver: none
volumes:
- pgadmin_data:/var/lib/pgadmin
redis:
container_name: fluxy_redis
image: redis:latest
ports:
- "6379:6379"
restart: always
volumes:
- redis_data:/data
networks:
- fluxy_network
fluxy:
container_name: fluxy_server
build:
context: .
dockerfile: Dockerfile
ports:
- ${SERVER_PORT}:${SERVER_PORT}
depends_on:
- postgres
links:
- postgres:postgres
volumes:
- .:/app
restart: always
networks:
- fluxy_network
volumes:
postgres_data:
pgadmin_data:
redis_data:
networks:
fluxy_network:
driver: bridge