forked from alfg/openencoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.07 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
version: '3'
services:
server:
build: .
environment:
- GIN_MODE=release
- DATABASE_HOST=db
- REDIS_HOST=redis
links:
- redis
- db
ports:
- "8080:8080"
entrypoint: ["/app", "server"]
worker:
build: .
environment:
- DATABASE_HOST=db
- REDIS_HOST=redis
links:
- redis
- db
entrypoint: ["/app", "worker"]
redis:
image: "redis:alpine"
ports:
- "6379:6379"
db:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_DB: 'openencoder'
volumes:
- /var/lib/postgresql/data
- ./scripts:/docker-entrypoint-initdb.d
# ftpd:
# image: stilliard/pure-ftpd
# container_name: pure-ftpd
# ports:
# - "21:21"
# - "30000-30009:30000-30009"
# volumes:
# - "./data/data:/home/username/"
# - "./data/passwd:/etc/pure-ftpd/passwd"
# environment:
# PUBLICHOST: "localhost"
# FTP_USER_NAME: username
# FTP_USER_PASS: mypass
# FTP_USER_HOME: /home/username