Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (85 loc) · 1.76 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (85 loc) · 1.76 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.9'
services:
desko-db:
image: mysql:8.0
container_name: desko-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
expose:
- '3306'
ports:
- '${DB_PORT}:3306'
volumes:
- 'mysql-db:/var/lib/mysql'
networks:
- app-network
desko-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: desko-phpmyadmin
restart: always
expose:
- '80'
ports:
- '${PHPMYADMIN_PORT}:80'
depends_on:
- desko-db
environment:
PMA_HOST: desko-db
PMA_PORT: '${DB_PORT}'
PMA_ARBITRARY: 1
networks:
- app-network
desko-redis:
image: redis
container_name: desko-redis
expose:
- '6379'
ports:
- '${REDIS_PORT}:6379'
networks:
- app-network
desko-api:
container_name: desko-api
build:
context: ./
dockerfile: packages/api/Dockerfile.api
restart: unless-stopped
environment:
DB_HOST: 'desko-db'
REDIS_URL: 'desko-redis'
ports:
- '${API_PORT}:${API_PORT}'
depends_on:
- desko-db
- desko-redis
networks:
- app-network
desko-web:
container_name: desko-web
build:
context: ./
dockerfile: packages/web/Dockerfile.web
ports:
- '3000:3000'
networks:
- app-network
webserver:
image: nginx:mainline-alpine
container_name: webserver
restart: unless-stopped
ports:
- '80:80'
- '443:443'
volumes:
- /etc/ssl/certs/cloudflare/:/etc/ssl/
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- app-network
volumes:
mysql-db:
networks:
app-network: