-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.2 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
version: '3'
services:
app:
container_name: winwin-api
image: ghcr.io/cp23pl1/winwin-backend:latest
ports:
- '${PORT}:${PORT}'
restart: always
env_file:
- .env
depends_on:
- postgres
- redis
networks:
- app
volumes:
- ./service-account.json:/usr/src/app/service-account.json
postgres:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
restart: always
networks:
- app
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
pgadmin:
container_name: winwin-pgadmin
image: dpage/pgadmin4:latest
ports:
- '5050:80'
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
networks:
- app
volumes:
- pgadmin-data:/var/lib/pgadmin
redis:
image: redis:latest
restart: always
networks:
- app
volumes:
- redis-data:/data
networks:
app:
name: app
volumes:
postgres-data:
pgadmin-data:
redis-data: