-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
63 lines (58 loc) · 1.22 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
63 lines (58 loc) · 1.22 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
version: "3.8"
services:
postgres.db:
container_name: postgres.gym
image: postgres:14.2
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: gym
POSTGRES_USER: gym
POSTGRES_DB: gym
networks:
- gym-net
# volumes:
# - ./postgres-volume:/var/lib/postgresql/data
gin.app:
container_name: gin.app
# image: registry.gitlab.com/gym-global/backend/gym:v1
restart: always
build:
context: .
env_file: .env
ports:
- 6000:6000
depends_on:
- postgres.db
networks:
- gym-net
redis.cache:
container_name: redis.redis
image: redis:6.2.6
restart: always
command: redis-server --appendonly yes --requirepass nNS&B#!-,[
ports:
- 6379:6379
networks:
- gym-net
# volumes:
# - ./redis-volume:/data
portainer:
image: portainer/portainer:latest
container_name: portainer
command: -H unix:///var/run/docker.sock
restart: always
ports:
- 9000:9000
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /volumes/portainer_data:/data
networks:
- gym-net
networks:
gym-net:
#volumes:
# redis-volume:
# postgres-volume: