generated from barthofu/tscord
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (67 loc) · 1.49 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
networks:
dev:
services:
# ==== Application ====
app:
container_name: my_bot
build:
context: ./
dockerfile: ./.docker/app/Dockerfile
env_file:
- .env
ports:
- 4000:4000
volumes:
- ./database:/app/database
- ./logs/:/app/logs
- ./assets:/app/assets
restart: always
networks:
- dev
# depends_on:
# - database
# ==== MySQL database ====
# database:
# image: mysql # or `mariadb`
# container_name: database
# restart: always
# volumes:
# - ./data:/var/lib/mysql:rw
# environment:
# - MYSQL_DATABASE=${DATABASE_NAME}
# - MYSQL_USER=${DATABASE_USER}
# - MYSQL_PASSWORD=${DATABASE_PASSWORD}
# - MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
# ports:
# - 3306:3306
# networks:
# - dev
# ==== PostgreSQL database ====
# database:
# image: postgres
# container_name: database
# restart: always
# volumes:
# - ./data:/var/lib/postgresql:rw
# environment:
# - POSTGRES_DB=${DATABASE_NAME}
# - POSTGRES_USER=${DATABASE_USER}
# - POSTGRES_PASSWORD=${DATABASE_PASSWORD}
# ports:
# - 5432:5432
# networks:
# - dev
# ==== phpMyAdmin ====
# phpmyadmin:
# image: phpmyadmin
# container_name: phpmyadmin
# restart: always
# depends_on:
# - database
# ports:
# - 8080:80
# environment:
# PMA_HOST: database
# networks:
# - dev